import { defineStore } from 'pinia'
import { ref } from 'vue'
import { getArticleCateList } from '@/api/article.js'

export const useArticleCateStore = defineStore('articleCateStore', () =>{
  const cateList = ref([])

  const getCateList = async () => {
    const res = await getArticleCateList()
    cateList.value = res.data.data
  }
  return {
    cateList,
    getCateList
  }

})
